﻿using ModernChannel.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernChannel.Model.Interface
{
    public interface IOrganization
    {
        List<Organization> SearchOrganizations(out int totalRecord, string textSearch, int pagesize = 0, int pageindex = 0);

        List<Organization> SearchOrganizations(out int totalRecord, string organizationCode, string organizationName, int pagesize = 0, int pageindex = 0);

        Organization RetrieveOrganization(string oragnizationCode);

        bool Add(Organization record);

        bool Update(Organization record);

        bool Delete(string organizationCode);
    }
}
